-- GENERATED SPELL FOR [Legion Commander Tyralion] --


function spell0_27844(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27844', 620, 1)
end

function Sorts_27844(pUnit, Event)
local choix_sorts_27844 = math.random(0, 0)
if choix_sorts_27844 == 0 then
pUnit:RegisterEvent('spell0_27844', 1, 1)
end
end

function mob27844_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27844', math.random(1500, 3000), 1)
end

function mob27844_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27844_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27844_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27844, 1, 'mob27844_Action')
RegisterUnitEvent(27844, 2, 'mob27844_Leave')
RegisterUnitEvent(27844, 3, 'mob27844_Kill')
RegisterUnitEvent(27844, 4, 'mob27844_Die')
